import 'package:factoryside/bean/finance_entity.dart';

financeEntityFromJson(FinanceEntity data, Map<String, dynamic> json) {
	if (json['ProvinceName'] != null) {
		data.provinceName = json['ProvinceName'].toString();
	}
	if (json['cityName'] != null) {
		data.cityName = json['cityName'].toString();
	}
	if (json['areaName'] != null) {
		data.areaName = json['areaName'].toString();
	}
	if (json['districtName'] != null) {
		data.districtName = json['districtName'].toString();
	}
	if (json['Product'] != null) {
		data.product = json['Product'].toString();
	}
	if (json['PayMoney'] != null) {
		data.payMoney = json['PayMoney'] is String
				? double.tryParse(json['PayMoney'])
				: json['PayMoney'].toDouble();
	}
	if (json['OrderID'] != null) {
		data.orderID = json['OrderID'] is String
				? int.tryParse(json['OrderID'])
				: json['OrderID'].toInt();
	}
	if (json['TypeID'] != null) {
		data.typeID = json['TypeID'] is String
				? int.tryParse(json['TypeID'])
				: json['TypeID'].toInt();
	}
	if (json['TypeName'] != null) {
		data.typeName = json['TypeName'].toString();
	}
	if (json['Num'] != null) {
		data.num = json['Num'] is String
				? int.tryParse(json['Num'])
				: json['Num'].toInt();
	}
	if (json['ProvinceCode'] != null) {
		data.provinceCode = json['ProvinceCode'].toString();
	}
	if (json['CityCode'] != null) {
		data.cityCode = json['CityCode'].toString();
	}
	if (json['AreaCode'] != null) {
		data.areaCode = json['AreaCode'].toString();
	}
	if (json['DistrictCode'] != null) {
		data.districtCode = json['DistrictCode'].toString();
	}
	if (json['Address'] != null) {
		data.address = json['Address'].toString();
	}
	if (json['Longitude'] != null) {
		data.longitude = json['Longitude'].toString();
	}
	if (json['Dimension'] != null) {
		data.dimension = json['Dimension'].toString();
	}
	if (json['UserID'] != null) {
		data.userID = json['UserID'].toString();
	}
	if (json['Guarantee'] != null) {
		data.guarantee = json['Guarantee'].toString();
	}
	if (json['UserName'] != null) {
		data.userName = json['UserName'].toString();
	}
	if (json['Phone'] != null) {
		data.phone = json['Phone'].toString();
	}
	if (json['CreateDate'] != null) {
		data.createDate = json['CreateDate'].toString();
	}
	if (json['AudDate'] != null) {
		data.audDate = json['AudDate'];
	}
	if (json['ReceiveOrderDate'] != null) {
		data.receiveOrderDate = json['ReceiveOrderDate'];
	}
	if (json['RepairCompleteDate'] != null) {
		data.repairCompleteDate = json['RepairCompleteDate'];
	}
	if (json['State'] != null) {
		data.state = json['State'].toString();
	}
	if (json['Extra'] != null) {
		data.extra = json['Extra'];
	}
	if (json['ExtraTime'] != null) {
		data.extraTime = json['ExtraTime'].toString();
	}
	if (json['ExtraFee'] != null) {
		data.extraFee = json['ExtraFee'] is String
				? int.tryParse(json['ExtraFee'])
				: json['ExtraFee'].toInt();
	}
	if (json['IsUse'] != null) {
		data.isUse = json['IsUse'].toString();
	}
	if (json['SendUser'] != null) {
		data.sendUser = json['SendUser'];
	}
	if (json['OrgSendUser'] != null) {
		data.orgSendUser = json['OrgSendUser'];
	}
	if (json['LoginUser'] != null) {
		data.loginUser = json['LoginUser'];
	}
	if (json['IsPay'] != null) {
		data.isPay = json['IsPay'].toString();
	}
	if (json['OrderMoney'] != null) {
		data.orderMoney = json['OrderMoney'] is String
				? int.tryParse(json['OrderMoney'])
				: json['OrderMoney'].toInt();
	}
	if (json['BeyondDistance'] != null) {
		data.beyondDistance = json['BeyondDistance'].toString();
	}
	if (json['AccessoryMoney'] != null) {
		data.accessoryMoney = json['AccessoryMoney'] is String
				? int.tryParse(json['AccessoryMoney'])
				: json['AccessoryMoney'].toInt();
	}
	if (json['ApplyNum'] != null) {
		data.applyNum = json['ApplyNum'] is String
				? int.tryParse(json['ApplyNum'])
				: json['ApplyNum'].toInt();
	}
	if (json['QApplyNum'] != null) {
		data.qApplyNum = json['QApplyNum'] is String
				? int.tryParse(json['QApplyNum'])
				: json['QApplyNum'].toInt();
	}
	if (json['UpdateTime'] != null) {
		data.updateTime = json['UpdateTime'];
	}
	if (json['ThirdPartyNo'] != null) {
		data.thirdPartyNo = json['ThirdPartyNo'];
	}
	if (json['ExpressNo'] != null) {
		data.expressNo = json['ExpressNo'];
	}
	if (json['RecycleOrderHour'] != null) {
		data.recycleOrderHour = json['RecycleOrderHour'] is String
				? int.tryParse(json['RecycleOrderHour'])
				: json['RecycleOrderHour'].toInt();
	}
	if (json['SendOrderState'] != null) {
		data.sendOrderState = json['SendOrderState'];
	}
	if (json['SendOrderMsg'] != null) {
		data.sendOrderMsg = json['SendOrderMsg'];
	}
	if (json['AppointmentState'] != null) {
		data.appointmentState = json['AppointmentState'];
	}
	if (json['AppointmentMessage'] != null) {
		data.appointmentMessage = json['AppointmentMessage'];
	}
	if (json['IsLook'] != null) {
		data.isLook = json['IsLook'].toString();
	}
	if (json['FIsLook'] != null) {
		data.fIsLook = json['FIsLook'].toString();
	}
	if (json['QuaMoney'] != null) {
		data.quaMoney = json['QuaMoney'] is String
				? int.tryParse(json['QuaMoney'])
				: json['QuaMoney'].toInt();
	}
	if (json['IsLate'] != null) {
		data.isLate = json['IsLate'];
	}
	if (json['IsExtraTime'] != null) {
		data.isExtraTime = json['IsExtraTime'];
	}
	if (json['MallID'] != null) {
		data.mallID = json['MallID'] is String
				? int.tryParse(json['MallID'])
				: json['MallID'].toInt();
	}
	if (json['IsSettlement'] != null) {
		data.isSettlement = json['IsSettlement'];
	}
	if (json['SettlementMoney'] != null) {
		data.settlementMoney = json['SettlementMoney'] is String
				? double.tryParse(json['SettlementMoney'])
				: json['SettlementMoney'].toDouble();
	}
	if (json['SettlementTime'] != null) {
		data.settlementTime = json['SettlementTime'];
	}
	if (json['FStarOrder'] != null) {
		data.fStarOrder = json['FStarOrder'];
	}
	if (json['StarOrder'] != null) {
		data.starOrder = json['StarOrder'];
	}
	if (json['PartyNo'] != null) {
		data.partyNo = json['PartyNo'].toString();
	}
	if (json['IsCall'] != null) {
		data.isCall = json['IsCall'];
	}
	if (json['Frozen'] != null) {
		data.frozen = json['Frozen'] is String
				? int.tryParse(json['Frozen'])
				: json['Frozen'].toInt();
	}
	if (json['RelationOrderID'] != null) {
		data.relationOrderID = json['RelationOrderID'] is String
				? int.tryParse(json['RelationOrderID'])
				: json['RelationOrderID'].toInt();
	}
	if (json['barCodeIsNo'] != null) {
		data.barCodeIsNo = json['barCodeIsNo'] is String
				? int.tryParse(json['barCodeIsNo'])
				: json['barCodeIsNo'].toInt();
	}
	if (json['appointmentTime'] != null) {
		data.appointmentTime = json['appointmentTime'];
	}
	if (json['AffiliatedPerson'] != null) {
		data.affiliatedPerson = json['AffiliatedPerson'] is String
				? int.tryParse(json['AffiliatedPerson'])
				: json['AffiliatedPerson'].toInt();
	}
	if (json['CurrentOperator'] != null) {
		data.currentOperator = json['CurrentOperator'] is String
				? int.tryParse(json['CurrentOperator'])
				: json['CurrentOperator'].toInt();
	}
	if (json['WithdrawalId'] != null) {
		data.withdrawalId = json['WithdrawalId'] is String
				? int.tryParse(json['WithdrawalId'])
				: json['WithdrawalId'].toInt();
	}
	if (json['MasterPrice'] != null) {
		data.masterPrice = json['MasterPrice'] is String
				? int.tryParse(json['MasterPrice'])
				: json['MasterPrice'].toInt();
	}
	if (json['LastReturnVisitDate'] != null) {
		data.lastReturnVisitDate = json['LastReturnVisitDate'];
	}
	if (json['FullAddress'] != null) {
		data.fullAddress = json['FullAddress'].toString();
	}
	if (json['IsNoMaster'] != null) {
		data.isNoMaster = json['IsNoMaster'];
	}
	if (json['SystemSendUser'] != null) {
		data.systemSendUser = json['SystemSendUser'];
	}
	if (json['UserAccountUserID'] != null) {
		data.userAccountUserID = json['UserAccountUserID'];
	}
	if (json['Manual'] != null) {
		data.manual = json['Manual'] is String
				? int.tryParse(json['Manual'])
				: json['Manual'].toInt();
	}
	if (json['UserReservation'] != null) {
		data.userReservation = json['UserReservation'];
	}
	if (json['OrderNumber'] != null) {
		data.orderNumber = json['OrderNumber'].toString();
	}
	if (json['SparePhone'] != null) {
		data.sparePhone = json['SparePhone'];
	}
	if (json['ActivationTime'] != null) {
		data.activationTime = json['ActivationTime'];
	}
	if (json['SubPrice'] != null) {
		data.subPrice = json['SubPrice'] is String
				? int.tryParse(json['SubPrice'])
				: json['SubPrice'].toInt();
	}
	if (json['IsYearsLaterHandle'] != null) {
		data.isYearsLaterHandle = json['IsYearsLaterHandle'].toString();
	}
	return data;
}

Map<String, dynamic> financeEntityToJson(FinanceEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['ProvinceName'] = entity.provinceName;
	data['cityName'] = entity.cityName;
	data['areaName'] = entity.areaName;
	data['districtName'] = entity.districtName;
	data['Product'] = entity.product;
	data['PayMoney'] = entity.payMoney;
	data['OrderID'] = entity.orderID;
	data['TypeID'] = entity.typeID;
	data['TypeName'] = entity.typeName;
	data['Num'] = entity.num;
	data['ProvinceCode'] = entity.provinceCode;
	data['CityCode'] = entity.cityCode;
	data['AreaCode'] = entity.areaCode;
	data['DistrictCode'] = entity.districtCode;
	data['Address'] = entity.address;
	data['Longitude'] = entity.longitude;
	data['Dimension'] = entity.dimension;
	data['UserID'] = entity.userID;
	data['Guarantee'] = entity.guarantee;
	data['UserName'] = entity.userName;
	data['Phone'] = entity.phone;
	data['CreateDate'] = entity.createDate;
	data['AudDate'] = entity.audDate;
	data['ReceiveOrderDate'] = entity.receiveOrderDate;
	data['RepairCompleteDate'] = entity.repairCompleteDate;
	data['State'] = entity.state;
	data['Extra'] = entity.extra;
	data['ExtraTime'] = entity.extraTime;
	data['ExtraFee'] = entity.extraFee;
	data['IsUse'] = entity.isUse;
	data['SendUser'] = entity.sendUser;
	data['OrgSendUser'] = entity.orgSendUser;
	data['LoginUser'] = entity.loginUser;
	data['IsPay'] = entity.isPay;
	data['OrderMoney'] = entity.orderMoney;
	data['BeyondDistance'] = entity.beyondDistance;
	data['AccessoryMoney'] = entity.accessoryMoney;
	data['ApplyNum'] = entity.applyNum;
	data['QApplyNum'] = entity.qApplyNum;
	data['UpdateTime'] = entity.updateTime;
	data['ThirdPartyNo'] = entity.thirdPartyNo;
	data['ExpressNo'] = entity.expressNo;
	data['RecycleOrderHour'] = entity.recycleOrderHour;
	data['SendOrderState'] = entity.sendOrderState;
	data['SendOrderMsg'] = entity.sendOrderMsg;
	data['AppointmentState'] = entity.appointmentState;
	data['AppointmentMessage'] = entity.appointmentMessage;
	data['IsLook'] = entity.isLook;
	data['FIsLook'] = entity.fIsLook;
	data['QuaMoney'] = entity.quaMoney;
	data['IsLate'] = entity.isLate;
	data['IsExtraTime'] = entity.isExtraTime;
	data['MallID'] = entity.mallID;
	data['IsSettlement'] = entity.isSettlement;
	data['SettlementMoney'] = entity.settlementMoney;
	data['SettlementTime'] = entity.settlementTime;
	data['FStarOrder'] = entity.fStarOrder;
	data['StarOrder'] = entity.starOrder;
	data['PartyNo'] = entity.partyNo;
	data['IsCall'] = entity.isCall;
	data['Frozen'] = entity.frozen;
	data['RelationOrderID'] = entity.relationOrderID;
	data['barCodeIsNo'] = entity.barCodeIsNo;
	data['appointmentTime'] = entity.appointmentTime;
	data['AffiliatedPerson'] = entity.affiliatedPerson;
	data['CurrentOperator'] = entity.currentOperator;
	data['WithdrawalId'] = entity.withdrawalId;
	data['MasterPrice'] = entity.masterPrice;
	data['LastReturnVisitDate'] = entity.lastReturnVisitDate;
	data['FullAddress'] = entity.fullAddress;
	data['IsNoMaster'] = entity.isNoMaster;
	data['SystemSendUser'] = entity.systemSendUser;
	data['UserAccountUserID'] = entity.userAccountUserID;
	data['Manual'] = entity.manual;
	data['UserReservation'] = entity.userReservation;
	data['OrderNumber'] = entity.orderNumber;
	data['SparePhone'] = entity.sparePhone;
	data['ActivationTime'] = entity.activationTime;
	data['SubPrice'] = entity.subPrice;
	data['IsYearsLaterHandle'] = entity.isYearsLaterHandle;
	return data;
}